/**
 * Created by zycool on 2017/1/4.
 * 完整性系统登录 - 新
 */

$(function(){

    var $box = $('#JQ_login_new_box');
    var $map_box = $('#JQ_login_new_map');

    function setMapBox(){
        var box_w = $box.width();
        var box_h = $box.height();

        var c_w = box_w / 1.5;
        var c_h = box_h / 1.5;

        $map_box.width(c_w).height(c_h).css({
            'top': Math.floor(Math.abs(box_w / 2 - c_w / 1.8)),
            'left': Math.floor(Math.abs(box_h / 2 - c_h / 2.5))
        });
    }

    setMapBox();

});
